I checked all callers of these methods and almost all of them expect the
method to return false. It looks like this return type was known at some
point, but got lost. Let's add it back.
Bug: T191634
Change-Id: I43484835b8f26e07ada6a2b1452a99ccc6d9b438
/**
* Returns the normalized form of the given page title, using the
* normalization rules of the given site. If the given title is a redirect,
- * the redirect weill be resolved and the redirect target is returned.
+ * the redirect will be resolved and the redirect target is returned.
*
* @note This actually makes an API request to the remote site, so beware
* that this function is slow and depends on an external service.
* @param string $pageName
* @param string $apiUrl
*
- * @return string
+ * @return string|false
* @throws \MWException
*/
public function normalizePageName( $pageName, $apiUrl ) {
/**
* Returns the normalized form of the given page title, using the
* normalization rules of the given site. If the given title is a redirect,
- * the redirect weill be resolved and the redirect target is returned.
+ * the redirect will be resolved and the redirect target is returned.
*
* @note This actually makes an API request to the remote site, so beware
* that this function is slow and depends on an external service.
*
* @param string $pageName
*
- * @return string
+ * @return string|false
* @throws MWException
*/
public function normalizePageName( $pageName ) {
*
* @param string $pageName
*
- * @return string
+ * @return string|false
*/
public function normalizePageName( $pageName ) {
return $pageName;